package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName exam_questions
 */
@TableName(value ="exam_questions")
public class ExamQuestions implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 试题名称
     */
    private String name;

    /**
     * 试题分数
     */
    private Integer score;

    /**
     * 是否可用（1可用，2不可用）
     */
    private Integer isusable;

    /**
     * 试题描述
     */
    private String describe;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 试题名称
     */
    public String getName() {
        return name;
    }

    /**
     * 试题名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 试题分数
     */
    public Integer getScore() {
        return score;
    }

    /**
     * 试题分数
     */
    public void setScore(Integer score) {
        this.score = score;
    }

    /**
     * 是否可用（1可用，2不可用）
     */
    public Integer getIsusable() {
        return isusable;
    }

    /**
     * 是否可用（1可用，2不可用）
     */
    public void setIsusable(Integer isusable) {
        this.isusable = isusable;
    }

    /**
     * 试题描述
     */
    public String getDescribe() {
        return describe;
    }

    /**
     * 试题描述
     */
    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExamQuestions other = (ExamQuestions) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getIsusable() == null ? other.getIsusable() == null : this.getIsusable().equals(other.getIsusable()))
            && (this.getDescribe() == null ? other.getDescribe() == null : this.getDescribe().equals(other.getDescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getIsusable() == null) ? 0 : getIsusable().hashCode());
        result = prime * result + ((getDescribe() == null) ? 0 : getDescribe().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", score=").append(score);
        sb.append(", isusable=").append(isusable);
        sb.append(", describe=").append(describe);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}